<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>预约详情</title>
    <link rel="stylesheet" href="../css/page-health-orderDetail.css" />
    <script src="../plugins/vue/vue.js"></script>
    <script src="../plugins/vue/axios-0.18.0.js"></script>
    <script src="../plugins/healthmobile.js"></script>
    <script>
        var orderId = getUrlParam("orderId");//根据请求URL中的参数名称获取对应的值
        //alert(id);
    </script>
</head>
<body data-spy="scroll" data-target="#myNavbar" data-offset="150">
<div id="app" class="app">
    <!-- 页面头部 -->
    <div class="top-header">
        <span class="f-left"><i class="icon-back" onclick="history.go(-1)"></i></span>
        <span class="center">传智健康</span>
        <span class="f-right"><i class="icon-more"></i></span>
    </div>
    <!-- 页面内容 -->
    <div class="contentBox">
        <div class="card">
            <div class="project-img">
                <img :src="imgUrl" width="100%" height="100%" />
            </div>
            <div class="project-text">
                套餐名称：<span class="tit">{{orderData.setmealName}}</span><br>
                预约时间：<span class="tit">{{orderData.orderDate}}</span><br>
                预约类型：<span class="tit">{{orderData.orderType}}</span><br>
                开始时间：<span class="tit">{{orderData.startTime}}</span><br>
                结束时间：<span class="tit">{{orderData.endTime}}</span><br>
            </div>

        </div>
        <div class="table-listbox">
            <div class="box-title">
                <i class="icon-zhen"><span class="path1"></span><span class="path2"></span></i>
                <span>体检详情信息</span>
            </div>
            <div class="box-table">
                <div class="table-title">
                    <div class="tit-item flex2">检查组</div>
                    <div class="tit-item  flex3">检查项</div>
                    <div class="tit-item  flex3">检查结果</div>
                </div>
                <div class="table-content">
                    <ul class="table-list">
                        <li class="table-item" v-for="item in dataList">
                            <div class="item flex2">{{item.checkgroupName}}</div>
                            <div class="item flex2">{{item.checkitemName}}</div>
                            <div class="item flex3">{{item.content}}</div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>

    </div>
</div>
<script>
    var vue = new Vue({
        el:'#app',
        data:{
            imgUrl:null,//套餐对应的图片链接
            orderData:{},//模型数据（套餐信息），用于页面数据展示
            dataList:[]
        },
        methods:{

        },
        mounted(){
            //根据orderId查询检查组和检查项及内容信息
            axios.post("/checkinfoApp/findByorderIdApp.do?orderId=" + orderId).then((res) => {
                if (res.data.flag){
                    this.orderData = res.data.data;
                    //根据orderId查询检查组和检查项及内容信息
                    axios.post("/checkinfoApp/findAllCheckgroupAndCheckitemApp.do?orderId=" + orderId).then((res) => {
                        if (res.data.flag){
                            this.dataList = res.data.data;
                        }else {
                            this.$message.error("检查组和检查项查询失败");
                        }
                    })
                }else {
                    this.$message.error("检查组和检查项查询失败");
                }
            })

        }
    });
</script>
</body>